package com.dw.etl.core.bean.vo;

import java.util.List;

/**
 * @author GuoPeng
 * @Title: Tree
 * @Description: 树状图实体类
 * @date 2019/5/11 20:39
 */
public class Tree {

    private  Integer id;
    /*名字*/
    private  String label;
    /*是否不可操作*/
    private  Boolean disabled;
    /*是否打开*/
    private  Boolean checked;

    private List<Tree> children;

        public Tree() {
            this.id = id;
            this.label = label;
            this.disabled = disabled;
            this.checked = checked;
            this.children = children;
        }

        public  static Tree  createDifaTree(){
            Tree tree = new Tree();
            tree.setChecked(true);
            return  tree;
        }


    public List<Tree> getChildren() {
        return children;
    }

    public void setChildren(List<Tree> children) {
        this.children = children;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }
}
